# 数字猜谜游戏
import random

computer = random.randint(0, 10)
while True:
    shuzi = eval(input("请输入你猜的数字"))
    if shuzi>computer:
        print('猜大了')
    elif shuzi<computer:
        print('猜小了')
    else:
        print('猜对了')
        break
#注意代码缩进